<?php

class ui_datatable_footer extends ui
{
	function __construct(&$parent=null)
	{
		$this->init(__FILE__,'tr',array('class'=>'datatable_footer',));
		$this->parent =& $parent;
		$this->add(new ui_td());
		$this->last->set('colspan',count($this->parent->nodes[0]->nodes));
		$this->last->add(new ui_image('ti/images/resultset_first.png','First'));
		$this->last->last->set('onclick','ti.datatables[\''.$this->parent->name.'\'].page(\'first\');');
		$this->last->add(new ui_image('ti/images/resultset_previous.png','Previous'));
		$this->last->last->set('onclick','ti.datatables[\''.$this->parent->name.'\'].page(\'previous\');');
		$this->last->add(new ui_input_select($this->parent->name.'_page_select',0));
		$this->last->last->set('id',$this->parent->name.'_page_select');
		$this->last->last->set('onchange','ti.datatables[\''.$this->parent->name.'\'].page(\'set\',this.options[this.selectedIndex].value);');
		$this->parent->page_select = $this->last->last;
		$this->last->add(new ui_image('ti/images/resultset_next.png','Next'));
		$this->last->last->set('onclick','ti.datatables[\''.$this->parent->name.'\'].page(\'next\');');
		$this->last->add(new ui_image('ti/images/resultset_last.png','Last'));
		$this->last->last->set('onclick','ti.datatables[\''.$this->parent->name.'\'].page(\'last\');');
	}
}

?>